java check if file exists

85

java check if file exists -

import java.io.File;

File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();

Comments

Submit
0 Comments